#include"CPolygon.h"
#include"CRectangle.h"
#include"CTRiangle.h"
int main(){
	CRectangle rect;
	CTriangle trgl;
	CPolygon*ppoly1 = &rect;
	CPolygon*ppoly2 = &trgl;
	ppoly1->setValues(4, 5);
	ppoly2->setValues(4, 5);
	cout << ppoly1->area() << endl;
	cout << ppoly2->area() << endl;
	system("pause");
	return 0;
}